package com.sch.www.sys.services;

import com.sch.www.common.base.BaseServicesSimple;
import com.sch.www.common.base.FeatureTreeRelation;
import com.sch.www.common.base.FeatureTreeServices;
import com.sch.www.sys.orm.entity.manual.Resource;

import java.util.List;

public interface ResourceServices extends BaseServicesSimple<Resource>, FeatureTreeServices<Resource> {


    List<Resource> selectByAccountId(String... accountIds);

    List<Resource> selectTreeByAccountId(String... accountIds);

    List<Resource> selectByRoleId(String... roleIds);

    List<Resource> selectTreeByRoleId(String... roleIds);

    List<String> selectIdByAccountId(String... accountIds);

    List<String> selectIdByRoleId(String... roleIds);

    List<Resource> selectAll();


    //====================================
    // start extend FeatureTreeServices
    //====================================

    @Override
    FeatureTreeRelation getFeatureTreeRelation();

    //====================================
    // end extend FeatureTreeServices
    //====================================


    //====================================
    // start extend BaseServicesSimple
    //====================================

    //====================================
    // end extend BaseServicesSimple
    //====================================
}
